package cn.wp.common.core.authentication;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 认证自定义配置属性
 * Created by chenyb on 2019/09/24
 */
@ConfigurationProperties(prefix = "wp.common.auth")
@Component
@Data
public class AuthenticationProperties {

    // 写到前端的token名称
    private String tokenName;

    // token生成私钥
    private String tokenSecret;

    // token超时时间(秒)  默认15天
    private long tokenTimeoutSeconds;

    // token超时模式 fixed dynamic
    private String tokenTimeoutMode;

    // token存储模式 local redis all
    private String tokenStorageyType;

    // token缓存前缀
    private String tokenCachePrefix;

}
